import http from './interface'

// 添加订单
export const _orderCreate = (data) => {
    return http.request({
        url: 'ktSyncOrder/create',
        method: 'POST',
        data,
        header:'h'
        // handle:true
    })
};
// 取消订单
export const _cancelCreate = (data) => {
    return http.request({
        url: 'ktSyncOrder/cancelOrder',
        method: 'GET',
        data,
        header:'h'
        // handle:true
    })
};
// 获取订单信息
export const _getOrder = (data) => {
    return http.request({
        url: 'ktSyncOrder/'+data,
        method: 'GET',
        data,
        header:'h'
        // handle:true
    })
};
// 支付
export const _pay = (data) => {
    return http.request({
        url: 'wxpay/appPay',
        method: 'POST',
        data,
        header:'h'
        // handle:true
    })
};
// 续住支付
export const _payChangeStay = (data) => {
    return http.request({
        url: 'wxpay/appChangeStay',
        method: 'POST',
        data,
        header:'h'
        // handle:true
    })
};
// 续住
export const _continueToLive = (data) => {
    return http.request({
        url: 'ktSyncOrder/continueToLive',
        method: 'GET',
        data,
        urlType:"pay",
        header:'h'
        // handle:true
    })
};

// // 默认全部导出  import api from '@/common/vmeitime-http/'
// export default {
//     _login,
// }